package com.yao.seckill.web.controller;

import com.yao.seckill.core.SeckillResponse;
import com.yao.seckill.web.service.RabbitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright (C), 2022-2022, 姚兵
 * Author: 32210
 * Date: 2022/9/16 12:34
 * FileName: RabbitController
 * Description: 123
 */
@RestController
@RequestMapping("rabbit")
public class RabbitController {

    @Autowired
    RabbitService rabbitService;
    @RequestMapping("send")
    public SeckillResponse send(@RequestParam String msg){
        return rabbitService.send(msg);
    }


}
